<template>
	<view class="about">
		<view class="about-content">
			<view class="content-main">
				<u-avatar class="logo" :src="logo" size="180"></u-avatar>
				<view class="app-name">运维平台</view>
				<view class="content-items">
					<view class="item" @click="callPhone">
						<view class="item-title">客服电话</view>
						<view class="item-phone">0755-23966344</view>
					</view>
					<u-line color="#e9e9e9"></u-line>
					<view class="item">
						<view class="item-title">公司邮箱</view>
						<view class="item-content">szszhlbest@163.com</view>
					</view>
					<u-line color="#e9e9e9"></u-line>
					<view class="item">
						<view class="item-title">公司官网</view>
						<view class="item-content">www.szsszhl.com</view>
					</view>
				</view>
			</view>
			<view class="about-bottom">深圳数字互联科技有限公司</view>
		</view>
	</view>
</template>

<script>
	
	export default{
		data(){
			return{
				logo:'https://witbus-app-res.szsszhl.com/wx_app/my/about_logo.png'
			}
		},
	
		methods:{
			callPhone(){
				uni.makePhoneCall({
					// 手机号
					phoneNumber: '110', 
					// 成功回调
					success: (res) => {
						console.log('调用成功!')	
					},
				
					// 失败回调
					fail: (res) => {
						console.log('调用失败!')
					}
				
			  });
			}
		}
	}
</script>

<style scoped lang="scss">
	.about{
		background: #f5f5f5;
		height: calc(100vh);
		display: flex;
		flex-direction: column;
		.about-content{
			height: 100%;
			display: flex;
			align-items: center;
			padding: 0 30rpx;
			justify-content: space-between;
			flex-direction: column;
			.content-main{
				width: 100%;
				display: flex;
				flex-direction: column;
				align-items: center;
			}
			.logo{
				margin-top: 60rpx;
			}
			.app-name{
				font-size: 40rpx;
				color: #333333;
				margin-top: 30rpx;
				font-weight: bold;
			}
			.content-items{
				border: 1rpx solid #f5f5f5;
				border-radius: 8rpx;
				background: #ffffff;
				width: 100%;
				margin-top: 30rpx;
				display: flex;
				flex-direction: column;
				.item{
					display: flex;
					flex-direction: row;
					padding-top: 20rpx;
					padding-bottom: 20rpx;
					.item-title{
						font-size: 32rpx;
						color: #333333;
						margin-left: 30rpx;
					}
					.item-phone{
						font-size: 32rpx;
						color: #fb5151;
						margin-left: 40rpx;
					}
					.item-content{
						font-size: 32rpx;
						color: #333333;
						margin-left: 40rpx;
					}
				}
				
			}
			
		}
		.about-bottom{
			font-size: 32rpx;
			color: #666666;
			margin-bottom: 16rpx;
		}
	}

</style>
